package pierwszy.wordPressPageObjects.wordPressTcs;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;

import pierwszy.wordPressPageObjects.AdminLoginPage;
import pierwszy.wordPressPageObjects.AllPostsPage;

@Test
public class TestPostsCountUsingPageObjects {
	
	public void countPosts(){
		WebDriver driver = new FirefoxDriver();
		
		AdminLoginPage adminLoginPage = new AdminLoginPage(driver).get();
		AllPostsPage allPostsPage = adminLoginPage.login();
		System.out.println("Number of all posts: " + allPostsPage.getAllPostsCount());
	}
}
